package com.outfood.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @description food_store
 * @author BEJSON
 * @date 2024-03-25
 */
@Data
@Table(name = "food_store")
public class Store implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @KeySql(useGeneratedKeys = true)
    /**
     * 主键ID
     */
    private Long id;


    /**
     * 登录失败原因
     */
    private String loginFail;
    /**
     * 手机号
     */
    private String mobile;

    /**
     * 在线状态
     */
    private String onlineStatus;

    /**
     * 商家名称
     */
    private String storeName;


    /**
     * 是否开启自动评价回复 TRUE代表是 FALSE代表不是
     */
    private String autoReplay;

    /**
     * 是否开启自动出餐 TRUE代表是 FALSE代表不是
     */
    private String autoOut;

    /**
     * Cookie
     */
    private String cookie;

    /**
     * 区域ID
     */
    private String regionId;


    /**
     * 评价cookie
     */
    private String evaluateCookie;

    /**
     * 区域版本rn区域版本
     */
    private String regionVersion;

    /**
     * MEITUAN  、  ELME
     */
    private String platform;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 0禁用 1正常
     */
    private String storeStatus;

    /**
     * create_user
     */
    private String createUser;

    /**
     * create_date
     */
    private Date createDate;

    /**
     * modify_user
     */
    private String modifyUser;

    /**
     * modify_date
     */
    private Date modifyDate;

    /**
     * state
     */
    private String state;

    @Transient
    private Integer time;

    /**
     * 过期时间
     */
    private Date expireTime;

    /**
     * 掉线原因
     */
    private String offReason;


    private Long pStoreId;


    //所属服务器ID
    private Long serverId;


    private String elemcookie;

    private String elemstorage;




}